package utility;

public class DelayTimer {
	int delayCounter;
	
	public DelayTimer(){
		delayCounter=0;
	}
	public void delay(int amount){
		if(delayCounter<amount)delayCounter=amount;
	}
	
	public void update(){
		delayCounter--;
		if(delayCounter<0)delayCounter=0;
	}
	
	public boolean isDelayed(){
		if(delayCounter>0)return false;
		else return true;
	}
}
